package com.gl.glcourses.repository;


import java.util.List;

import org.springframework.stereotype.Repository;

public interface IProjectRepository <EntityType>{
	
    void save(EntityType entity) throws Exception;
    EntityType saveUpdateAndReturn( EntityType entity) throws Exception;
    void saveUpdate(EntityType entity) throws Exception;
    EntityType findById(Long id, Class clase) throws Exception;
    void delete(EntityType entity) throws Exception;
	List<EntityType> getListEntity(Class clase) throws Exception;
   
}